import request from '@/utils/request'

export function addNews(data) {
    return request({
        url: '/news/add',
        method: 'post',
        data: data
    })
}
export function getNewsById(id) {
    return request({
        url: '/news/'+id,
        method: 'get'
    })
}
